import request from '@/utils/request'

// 查询产品分类列表
export function listProductCategorize(query) {
  return request({
    url: '/factor/productCategorize/list',
    method: 'get',
    params: query
  })
}
export function selectProductCategorizeDict() {
  return request({
    url: '/factor/productCategorize/dict',
    method: 'get',
  })
}

// 查询产品分类详细
export function getProductCategorize(id) {
  return request({
    url: '/factor/productCategorize/' + id,
    method: 'get'
  })
}

// 新增产品分类
export function addProductCategorize(data) {
  return request({
    url: '/factor/productCategorize',
    method: 'post',
    data: data
  })
}

// 修改产品分类
export function updateProductCategorize(data) {
  return request({
    url: '/factor/productCategorize',
    method: 'put',
    data: data
  })
}

// 删除产品分类
export function delProductCategorize(id) {
  return request({
    url: '/factor/productCategorize/' + id,
    method: 'delete'
  })
}


// 清理参数缓存
export function clearProductCategorizeCache() {
  return request({
    url: '/factor/productCategorize/clearCache',
    method: 'delete'
  })
}

